package com.quanyan.signup.mapper;

import com.quanyan.signup.entity.db.TbDistrict;
import com.quanyan.signup.entity.vo.resp.RespCityDistrict;
import com.quanyan.signup.entity.vo.resp.RespSearchExpert;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/7/6.
 */
public interface MyDefineMapper {

    /**
     * 查询城市信息
     * @return
     */
    List<RespCityDistrict> getAllCity();

    /**
     *  查询区域信息
     * @param cityId
     * @return
     */
    List<TbDistrict> getAllDistrict(Integer cityId);

    /**
     * 分页查询推荐人推荐所有达人信息
     * @param map
     * @return
     */
    List<RespSearchExpert> getExpertReferUser(Map<String,Object> map);

    /**
     * 查询推荐的达人数量
     * @param map
     * @return
     */
    int coutExpertReferUser(Map<String,Object> map);
}
